package com.it.bigdata.download.impl;

import com.it.bigdata.download.DownLoader;
import com.it.bigdata.util.HttpUtil;

public class BaiDuTieBaDownLoad implements DownLoader {
    @Override
    public String download(String url) {
        /**
         * 下载页面时在测试环境让其休眠1s
         */
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        String html = HttpUtil.simpleDownLoad(url);
        if (html != null) {
            return html;
        }
        return null;
    }
}
